<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Repair Products Category Rate</h1>
<form id="form1" name="form1" method="post" action="">
<table width="700" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">ID</th>
    <th scope="col">Category</th>
    <th scope="col">Rate(%)</th>
  </tr>
<?php foreach($this->prList as $k => $v){?>  
  <tr>
    <td><?php echo $v['id_cate']?></td>
    <td><?php echo $v['title_cate']?></td>
    <td>
      <input type="text" name="rate[<?php echo $v['id_cate']?>]" id="rate[<?php echo $v['id_cate']?>]" value="<?php echo $v['rate_price']?>" />
      %</td>
  </tr>
<?php }?>  
</table>
<br />
<br />
<input type="submit" name="btn_save" id="btn_save" value="SAVE RATE" />
</form>
<p>After you save the rate , <a href="http://192.168.1.124/repairparts/update-bottom-price" target="_blank">click Here</a></p>
</body>
</html>
